package com.tsd.base.dao;

import com.tsd.base.entity.BaseRelatedParty;
import com.tsd.base.entity.BaseRelatedPartyExt;
import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseRelatedPartyMapper
 *
 * @author david
 * @date 2024/03/26 15:24:49
 */
public interface BaseRelatedPartyMapper {

    BaseRelatedParty selectByPrimaryKey(Long id);

    BaseRelatedPartyExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(BaseRelatedParty record);

    int insertSelective(BaseRelatedParty record);

    int insertList(List<BaseRelatedParty> list);

    int updateByPrimaryKey(BaseRelatedParty record);

    int updateByPrimaryKeySelective(BaseRelatedParty record);

    List<BaseRelatedPartyExt> selectByEntity(BaseRelatedParty record);

    List<BaseRelatedPartyExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BaseRelatedPartyExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BaseRelatedPartyExt> selectByParams(@Param("params") Map<String, Object> params);

    BaseRelatedPartyExt selectDuplicatedCode(BaseRelatedPartyExt record);
}